package com.ruoyi.com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.OperateBasicForm;
import com.ruoyi.common.core.domain.TreeSelect;
import com.ruoyi.common.core.domain.entity.ComMenu;
import com.ruoyi.common.core.domain.entity.ComUser;
import com.ruoyi.common.core.domain.entity.SysMenu;
import com.ruoyi.common.core.domain.model.LoginUnitfUser;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.system.domain.vo.RouterVo;

import java.util.List;

/**
 * 公共菜单Service接口
 *
 * @author sunye
 * @date 2024-09-26
 */
public interface IComMenuService extends IService<ComMenu>
{

    List<ComMenu> selectMenuTreeByUserId(LoginUnitfUser loginUser);

    List<RouterVo>  buildMenus(List<ComMenu> menus);

    List<ComMenu> selectMenuList(LoginUnitfUser loginUser);

    List<Long>  selectMenuListByRoleId(Long roleId);

    List<TreeSelect>  buildMenuTreeSelect(List<ComMenu> menus);

    String selectMenuNameById(String parentMenuId);

    List<ComMenu> selectUserHaveSmall(ComUser user, Long deptId);
}
